<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>
	</body>
	<script type="text/javascript">
		
		var p1 = new Object();
		p1.name = "张三"
		p1.age =12
		console.log(p1.name)
		
		function person(name, age){
			this.name = name
			this.age = age
		}
		var p2 =new person("李四",13)
		console.log(p2.name)
		
		var p3 = {
			name : "王五",
			age : 22,
			showname:function(){
				console.log(this.name)
			}			
		}
		p3.showname()
	</script>

</html>